#include "widget.h"
#include "ui_widget.h"
#include <qtabbar.h>
#include <QDebug>
#include <QTimer>
#include <QRegularExpression>

void Widget::on_pushButtonA303_clicked()
{
    ui->A303->show();
    ui->up1_3->show();
    ui->right1_3->show();
    ui->right1->show();
    ui->right2->show();
    ui->right3->show();
    ui->right1_2->show();
    ui->right2_2->show();
    ui->right3_2->show();
    disableButton();

    // Start the timer if it's not already running
    if (!hideTimer->isActive()) {
        hideTimer->start(6000); // 60000毫秒 = 60秒
    }
}

void Widget::on_pushButtonA304_clicked()
{
    ui->A304->show();
    ui->up1_3->show();
    ui->right1_3->show();
    ui->right1->show();
    ui->right2->show();
    ui->right3->show();
    ui->right1_2->show();
    ui->right2_2->show();
    ui->right3_2->show();
    disableButton();

    // Start the timer if it's not already running
    if (!hideTimer->isActive()) {
        hideTimer->start(6000); // 60000毫秒 = 60秒
    }
}

void Widget::on_pushButtonA301_clicked()
{
    ui->A301->show();
    ui->up1_3->show();
    ui->right1_3->show();
    ui->right1->show();
    ui->right2->show();
    ui->right3->show();
    ui->right1_2->show();
    ui->right2_2->show();
    ui->right3_2->show();
    disableButton();

    // Start the timer if it's not already running
    if (!hideTimer->isActive()) {
        hideTimer->start(6000); // 60000毫秒 = 60秒
    }
}


void Widget::on_pushButtonA302_clicked()
{
    ui->A302->show();
    ui->up1_3->show();
    ui->right1_3->show();
    ui->right1->show();
    ui->right2->show();
    ui->right3->show();
    ui->right1_2->show();
    ui->right2_2->show();
    ui->right3_2->show();
    disableButton();

    // Start the timer if it's not already running
    if (!hideTimer->isActive()) {
        hideTimer->start(6000); // 60000毫秒 = 60秒
    }
}

void Widget::on_pushButtonA305_clicked()
{
    ui->A305->show();
    ui->up1_3->show();
    ui->right1_3->show();
    ui->right1->show();
    ui->right2->show();
    ui->right3->show();
    ui->right1_2->show();
    ui->right2_2->show();
    ui->right3_2->show();
    disableButton();

    // Start the timer if it's not already running
    if (!hideTimer->isActive()) {
        hideTimer->start(6000); // 60000毫秒 = 60秒
    }
}

void Widget::on_pushButtonB303_clicked()
{
    ui->B303->show();
    ui->up1_3->show();
    ui->right1_3->show();
    ui->right1->show();
    ui->right2->show();
    ui->right3->show();
    ui->right1_2->show();
    ui->right2_2->show();
    ui->right3_2->show();
    disableButton();

    // Start the timer if it's not already running
    if (!hideTimer->isActive()) {
        hideTimer->start(6000); // 60000毫秒 = 60秒
    }
}

void Widget::on_pushButtonB304_clicked()
{
    ui->B304->show();
    ui->up1_3->show();
    ui->right1_3->show();
    ui->right1->show();
    ui->right2->show();
    ui->right3->show();
    ui->right1_2->show();
    ui->right2_2->show();
    ui->right3_2->show();
    disableButton();

    // Start the timer if it's not already running
    if (!hideTimer->isActive()) {
        hideTimer->start(6000); // 60000毫秒 = 60秒
    }
}

void Widget::on_pushButtonB301_clicked()
{
    ui->B301->show();
    ui->up1_3->show();
    ui->right1_3->show();
    ui->right1->show();
    ui->right2->show();
    ui->right3->show();
    ui->right1_2->show();
    ui->right2_2->show();
    ui->right3_2->show();
    disableButton();

    // Start the timer if it's not already running
    if (!hideTimer->isActive()) {
        hideTimer->start(6000); // 60000毫秒 = 60秒
    }
}

void Widget::on_pushButtonB302_clicked()
{
    ui->B302->show();
    ui->up1_3->show();
    ui->right1_3->show();
    ui->right1->show();
    ui->right2->show();
    ui->right3->show();
    ui->right1_2->show();
    ui->right2_2->show();
    ui->right3_2->show();
    disableButton();

    // Start the timer if it's not already running
    if (!hideTimer->isActive()) {
        hideTimer->start(6000); // 60000毫秒 = 60秒
    }
}

void Widget::on_pushButtonB305_clicked()
{
    ui->B305->show();
    ui->up1_3->show();
    ui->right1_3->show();
    ui->right1->show();
    ui->right2->show();
    ui->right3->show();
    ui->right1_2->show();
    ui->right2_2->show();
    ui->right3_2->show();
    disableButton();

    // Start the timer if it's not already running
    if (!hideTimer->isActive()) {
        hideTimer->start(6000); // 60000毫秒 = 60秒
    }
}

void Widget::on_pushButtonC301_clicked()
{
    ui->C301->show();
    ui->up2_3->show();
    ui->right1_3->show();
    ui->right2_3->show();
    ui->right1->show();
    ui->right2->show();
    ui->right3->show();
    ui->right1_2->show();
    ui->right2_2->show();
    ui->right3_2->show();
    disableButton();

    // Start the timer if it's not already running
    if (!hideTimer->isActive()) {
        hideTimer->start(6000); // 60000毫秒 = 60秒
    }
}

void Widget::on_pushButtonC303_clicked()
{
    ui->C303->show();
    ui->up2_3->show();
    ui->right1_3->show();
    ui->right2_3->show();
    ui->right1->show();
    ui->right2->show();
    ui->right3->show();
    ui->right1_2->show();
    ui->right2_2->show();
    ui->right3_2->show();
    disableButton();

    // Start the timer if it's not already running
    if (!hideTimer->isActive()) {
        hideTimer->start(6000); // 60000毫秒 = 60秒
    }
}

void Widget::on_pushButtonC304_clicked()
{
    ui->C304->show();
    ui->up2_3->show();
    ui->right1_3->show();
    ui->right2_3->show();
    ui->right1->show();
    ui->right2->show();
    ui->right3->show();
    ui->right1_2->show();
    ui->right2_2->show();
    ui->right3_2->show();
    disableButton();

    // Start the timer if it's not already running
    if (!hideTimer->isActive()) {
        hideTimer->start(6000); // 60000毫秒 = 60秒
    }
}

void Widget::on_pushButtonC302_clicked()
{
    ui->C302->show();
    ui->up2_3->show();
    ui->right1_3->show();
    ui->right2_3->show();
    ui->right1->show();
    ui->right2->show();
    ui->right3->show();
    ui->right1_2->show();
    ui->right2_2->show();
    ui->right3_2->show();
    disableButton();

    // Start the timer if it's not already running
    if (!hideTimer->isActive()) {
        hideTimer->start(6000); // 60000毫秒 = 60秒
    }
}

void Widget::on_pushButtonC305_clicked()
{
    ui->C305->show();
    ui->up2_3->show();
    ui->right1_3->show();
    ui->right2_3->show();
    ui->right1->show();
    ui->right2->show();
    ui->right3->show();
    ui->right1_2->show();
    ui->right2_2->show();
    ui->right3_2->show();
    disableButton();

    // Start the timer if it's not already running
    if (!hideTimer->isActive()) {
        hideTimer->start(6000); // 60000毫秒 = 60秒
    }
}

void Widget::on_pushButtonD301_clicked()
{
    ui->D301->show();
    ui->up2_3->show();
    ui->right1_3->show();
    ui->right2_3->show();
    ui->right1->show();
    ui->right2->show();
    ui->right3->show();
    ui->right1_2->show();
    ui->right2_2->show();
    ui->right3_2->show();
    disableButton();

    // Start the timer if it's not already running
    if (!hideTimer->isActive()) {
        hideTimer->start(6000); // 60000毫秒 = 60秒
    }
}

void Widget::on_pushButtonD302_clicked()
{
    ui->D302->show();
    ui->up2_3->show();
    ui->right1_3->show();
    ui->right2_3->show();
    ui->right1->show();
    ui->right2->show();
    ui->right3->show();
    ui->right1_2->show();
    ui->right2_2->show();
    ui->right3_2->show();
    disableButton();

    // Start the timer if it's not already running
    if (!hideTimer->isActive()) {
        hideTimer->start(6000); // 60000毫秒 = 60秒
    }
}

void Widget::on_pushButtonD303_clicked()
{
    ui->D303->show();
    ui->up2_3->show();
    ui->right1_3->show();
    ui->right2_3->show();
    ui->right1->show();
    ui->right2->show();
    ui->right3->show();
    ui->right1_2->show();
    ui->right2_2->show();
    ui->right3_2->show();
    disableButton();

    // Start the timer if it's not already running
    if (!hideTimer->isActive()) {
        hideTimer->start(6000); // 60000毫秒 = 60秒
    }
}

void Widget::on_pushButtonD304_clicked()
{
    ui->D304->show();
    ui->up2_3->show();
    ui->right1_3->show();
    ui->right2_3->show();
    ui->right1->show();
    ui->right2->show();
    ui->right3->show();
    ui->right1_2->show();
    ui->right2_2->show();
    ui->right3_2->show();
    disableButton();

    // Start the timer if it's not already running
    if (!hideTimer->isActive()) {
        hideTimer->start(6000); // 60000毫秒 = 60秒
    }
}

void Widget::on_pushButtonD305_clicked()
{
    ui->D305->show();
    ui->up2_3->show();
    ui->right1_3->show();
    ui->right2_3->show();
    ui->right1->show();
    ui->right2->show();
    ui->right3->show();
    ui->right1_2->show();
    ui->right2_2->show();
    ui->right3_2->show();
    disableButton();

    // Start the timer if it's not already running
    if (!hideTimer->isActive()) {
        hideTimer->start(6000); // 60000毫秒 = 60秒
    }
}

void Widget::on_pushButtonA306_clicked()
{
    ui->A306->show();
    ui->down1_3->show();
    ui->right1_3->show();
    ui->right1->show();
    ui->right2->show();
    ui->right3->show();
    ui->right1_2->show();
    ui->right2_2->show();
    ui->right3_2->show();
    disableButton();

    // Start the timer if it's not already running
    if (!hideTimer->isActive()) {
        hideTimer->start(6000); // 60000毫秒 = 60秒
    }
}

void Widget::on_pushButtonA307_clicked()
{
    ui->A307->show();
    ui->down1_3->show();
    ui->right1_3->show();
    ui->right1->show();
    ui->right2->show();
    ui->right3->show();
    ui->right1_2->show();
    ui->right2_2->show();
    ui->right3_2->show();
    disableButton();

    // Start the timer if it's not already running
    if (!hideTimer->isActive()) {
        hideTimer->start(6000); // 60000毫秒 = 60秒
    }
}

void Widget::on_pushButtonA308_clicked()
{
    ui->A308->show();
    ui->down1_3->show();
    ui->right1_3->show();
    ui->right1->show();
    ui->right2->show();
    ui->right3->show();
    ui->right1_2->show();
    ui->right2_2->show();
    ui->right3_2->show();
    disableButton();

    // Start the timer if it's not already running
    if (!hideTimer->isActive()) {
        hideTimer->start(6000); // 60000毫秒 = 60秒
    }
}

void Widget::on_pushButtonA309_clicked()
{
    ui->A309->show();
    ui->down1_3->show();
    ui->right1_3->show();
    ui->right1->show();
    ui->right2->show();
    ui->right3->show();
    ui->right1_2->show();
    ui->right2_2->show();
    ui->right3_2->show();
    disableButton();

    // Start the timer if it's not already running
    if (!hideTimer->isActive()) {
        hideTimer->start(6000); // 60000毫秒 = 60秒
    }
}

void Widget::on_pushButtonA310_clicked()
{
    ui->A310->show();
    ui->down1_3->show();
    ui->right1_3->show();
    ui->right1->show();
    ui->right2->show();
    ui->right3->show();
    ui->right1_2->show();
    ui->right2_2->show();
    ui->right3_2->show();
    disableButton();

    // Start the timer if it's not already running
    if (!hideTimer->isActive()) {
        hideTimer->start(6000); // 60000毫秒 = 60秒
    }
}

void Widget::on_pushButtonB306_clicked()
{
    ui->B306->show();
    ui->down1_3->show();
    ui->right1_3->show();
    ui->right1->show();
    ui->right2->show();
    ui->right3->show();
    ui->right1_2->show();
    ui->right2_2->show();
    ui->right3_2->show();
    disableButton();

    // Start the timer if it's not already running
    if (!hideTimer->isActive()) {
        hideTimer->start(6000); // 60000毫秒 = 60秒
    }
}

void Widget::on_pushButtonB307_clicked()
{
    ui->B307->show();
    ui->down1_3->show();
    ui->right1_3->show();
    ui->right1->show();
    ui->right2->show();
    ui->right3->show();
    ui->right1_2->show();
    ui->right2_2->show();
    ui->right3_2->show();
    disableButton();

    // Start the timer if it's not already running
    if (!hideTimer->isActive()) {
        hideTimer->start(6000); // 60000毫秒 = 60秒
    }
}

void Widget::on_pushButtonB308_clicked()
{
    ui->B308->show();
    ui->down1_3->show();
    ui->right1_3->show();
    ui->right1->show();
    ui->right2->show();
    ui->right3->show();
    ui->right1_2->show();
    ui->right2_2->show();
    ui->right3_2->show();
    disableButton();

    // Start the timer if it's not already running
    if (!hideTimer->isActive()) {
        hideTimer->start(6000); // 60000毫秒 = 60秒
    }
}

void Widget::on_pushButtonB309_clicked()
{
    ui->B309->show();
    ui->down1_3->show();
    ui->right1_3->show();
    ui->right1->show();
    ui->right2->show();
    ui->right3->show();
    ui->right1_2->show();
    ui->right2_2->show();
    ui->right3_2->show();
    disableButton();

    // Start the timer if it's not already running
    if (!hideTimer->isActive()) {
        hideTimer->start(6000); // 60000毫秒 = 60秒
    }
}

void Widget::on_pushButtonB310_clicked()
{
    ui->B310->show();
    ui->down1_3->show();
    ui->right1_3->show();
    ui->right1->show();
    ui->right2->show();
    ui->right3->show();
    ui->right1_2->show();
    ui->right2_2->show();
    ui->right3_2->show();
    disableButton();

    // Start the timer if it's not already running
    if (!hideTimer->isActive()) {
        hideTimer->start(6000); // 60000毫秒 = 60秒
    }
}

void Widget::on_pushButtonC306_clicked()
{
    ui->C306->show();
    ui->down2_3->show();
    ui->right1_3->show();
    ui->right2_3->show();
    ui->right1->show();
    ui->right2->show();
    ui->right3->show();
    ui->right1_2->show();
    ui->right2_2->show();
    ui->right3_2->show();
    disableButton();

    // Start the timer if it's not already running
    if (!hideTimer->isActive()) {
        hideTimer->start(6000); // 60000毫秒 = 60秒
    }
}

void Widget::on_pushButtonC307_clicked()
{
    ui->C307->show();
    ui->down2_3->show();
    ui->right1_3->show();
    ui->right2_3->show();
    ui->right1->show();
    ui->right2->show();
    ui->right3->show();
    ui->right1_2->show();
    ui->right2_2->show();
    ui->right3_2->show();
    disableButton();

    // Start the timer if it's not already running
    if (!hideTimer->isActive()) {
        hideTimer->start(6000); // 60000毫秒 = 60秒
    }
}

void Widget::on_pushButtonC308_clicked()
{
    ui->C308->show();
    ui->down2_3->show();
    ui->right1_3->show();
    ui->right2_3->show();
    ui->right1->show();
    ui->right2->show();
    ui->right3->show();
    ui->right1_2->show();
    ui->right2_2->show();
    ui->right3_2->show();
    disableButton();

    // Start the timer if it's not already running
    if (!hideTimer->isActive()) {
        hideTimer->start(6000); // 60000毫秒 = 60秒
    }
}

void Widget::on_pushButtonC309_clicked()
{
    ui->C309->show();
    ui->down2_3->show();
    ui->right1_3->show();
    ui->right2_3->show();
    ui->right1->show();
    ui->right2->show();
    ui->right3->show();
    ui->right1_2->show();
    ui->right2_2->show();
    ui->right3_2->show();
    disableButton();

    // Start the timer if it's not already running
    if (!hideTimer->isActive()) {
        hideTimer->start(6000); // 60000毫秒 = 60秒
    }
}

void Widget::on_pushButtonC310_clicked()
{
    ui->C310->show();
    ui->down2_3->show();
    ui->right1_3->show();
    ui->right2_3->show();
    ui->right1->show();
    ui->right2->show();
    ui->right3->show();
    ui->right1_2->show();
    ui->right2_2->show();
    ui->right3_2->show();
    disableButton();

    // Start the timer if it's not already running
    if (!hideTimer->isActive()) {
        hideTimer->start(6000); // 60000毫秒 = 60秒
    }
}

void Widget::on_pushButtonD306_clicked()
{
    ui->D306->show();
    ui->down2_3->show();
    ui->right1_3->show();
    ui->right2_3->show();
    ui->right1->show();
    ui->right2->show();
    ui->right3->show();
    ui->right1_2->show();
    ui->right2_2->show();
    ui->right3_2->show();
    disableButton();

    // Start the timer if it's not already running
    if (!hideTimer->isActive()) {
        hideTimer->start(6000); // 60000毫秒 = 60秒
    }
}

void Widget::on_pushButtonD307_clicked()
{
    ui->D307->show();
    ui->down2_3->show();
    ui->right1_3->show();
    ui->right2_3->show();
    ui->right1->show();
    ui->right2->show();
    ui->right3->show();
    ui->right1_2->show();
    ui->right2_2->show();
    ui->right3_2->show();
    disableButton();

    // Start the timer if it's not already running
    if (!hideTimer->isActive()) {
        hideTimer->start(6000); // 60000毫秒 = 60秒
    }
}

void Widget::on_pushButtonD308_clicked()
{
    ui->D308->show();
    ui->down2_3->show();
    ui->right1_3->show();
    ui->right2_3->show();
    ui->right1->show();
    ui->right2->show();
    ui->right3->show();
    ui->right1_2->show();
    ui->right2_2->show();
    ui->right3_2->show();
    disableButton();

    // Start the timer if it's not already running
    if (!hideTimer->isActive()) {
        hideTimer->start(6000); // 60000毫秒 = 60秒
    }
}

void Widget::on_pushButtonD309_clicked()
{
    ui->D309->show();
    ui->down2_3->show();
    ui->right1_3->show();
    ui->right2_3->show();
    ui->right1->show();
    ui->right2->show();
    ui->right3->show();
    ui->right1_2->show();
    ui->right2_2->show();
    ui->right3_2->show();
    disableButton();

    // Start the timer if it's not already running
    if (!hideTimer->isActive()) {
        hideTimer->start(6000); // 60000毫秒 = 60秒
    }
}

void Widget::on_pushButtonD310_clicked()
{
    ui->D310->show();
    ui->down2_3->show();
    ui->right1_3->show();
    ui->right2_3->show();
    ui->right1->show();
    ui->right2->show();
    ui->right3->show();
    ui->right1_2->show();
    ui->right2_2->show();
    ui->right3_2->show();
    disableButton();

    // Start the timer if it's not already running
    if (!hideTimer->isActive()) {
        hideTimer->start(6000); // 60000毫秒 = 60秒
    }
}
